package com.pm.swagger.mvc;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.config.ResourceHandlerRegistry;
import org.springframework.web.reactive.config.WebFluxConfigurer;

@Configuration
public class WebfluxConfig implements WebFluxConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        SwaggerResourceUtil.htmlResource( (a, b) -> registry.addResourceHandler(a).addResourceLocations(b));
    }
}